package com.wsc.personalblog.DTO;

import com.wsc.personalblog.entity.Comment;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
@ApiModel("评论扩展类")
public class CommentDTO extends Comment {

    @ApiModelProperty("评论用户名")
    private String username;
    @ApiModelProperty("评论点赞信息")
    private LikeInfoDTO likeInfoDTO;
    @ApiModelProperty("子评论信息")
    private List<CommentDTO> children = new ArrayList<>();
    @ApiModelProperty("子评论数量")
    private int msgCount;
    @ApiModelProperty("父评论用户name")
    private String pName;
    private String userAvatar;
}
